#include<stdio.h>

int AddtoTop(int top)
{
  int result = 0;
  for(int i = 1; i <= top; i++)
  {
      result += i;
  }
  return result;
}
int main()
{
  int result = 0;
  int top = 100;
  result = AddtoTop(top);

  printf("result: %d\n",result);
  return 0;
}
